package com.cskaoyan._02interface._05example.model;

/**
 * @description:
 * @author: 景天
 * @date: 2023/2/11 11:52
 **/

public class Product {
    // 商品编号 唯一的
    int id;
    String name;
    double price;
    String brand;

    public Product(int id, String name, double price, String brand) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.brand = brand;
    }

    public void print() {
        // 打印商品数据
        System.out.println("商品编号: "+id + " 商品名: " +name
        +" 商品价格: " + price + " 商品的品牌: " + brand);

    }
}
